package com.itic.mall.system.msg.websocket.service;

import com.itic.appbase.framework.common.service.CrudService;
import com.itic.mall.system.inter.msg.websocket.persistence.dao.WebSocketDao;
import com.itic.mall.system.inter.msg.websocket.persistence.model.WebSocket;
import com.itic.mall.system.inter.msg.websocket.persistence.model.WebSocketExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class WebSocketService
     extends CrudService<WebSocketDao,WebSocket,WebSocketExample> {
    @Autowired
    private WebSocketDao webSocketDao;

	public int getUnReadNews(String string) {
		return 0;
	}

	public List<String> getPushedIdsByTableName(String tableName) {
		return webSocketDao.getPushedIdsByTableName(tableName);
	}


}